import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'replaceNone'
})
export class ReplaceNonePipe implements PipeTransform {

  transform(value: any, str: string): any {
    if(value === null || value === undefined) {
      value = str;
    }
    return value;
  }

}
